package com.muse.designpatterns.decorator;

public class Sausage extends AccessoriesDecorator{

    private Food food;

    public Sausage(Food food) {
        this. food = food;
    }

    @Override
    public double cost() {
        System.out.println("添加香肠"+3+"元");
        return 3+food.cost();
    }

    @Override
    public String getDescription() {
        return "香肠";
    }
}
